/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

.a {
    text-decoration: none;
}

/* 页面容器 */
.container {
    width: 1226px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb>a {
    color: #666;
}

.breadcrumb>span {
    color: #333;
}

/* 商品信息区域 */
.product-info {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* 商品图片区域 */
.product-images {
    width: 40%;
    position: relative;
    /* height: 350px; */
}

.main-image {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    left: 3000px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #ff6700;
}

/* 商品详情区域 */
.product-details {
    width: 50%;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    background-color: #fff8e8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.product-subtitle {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.price-label {
    font-size: 16px;
    color: #666;
}

.price-value {
    font-size: 36px;
    font-weight: bold;
    color: #ff6700;
    margin-left: 10px;
}

.product-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-props {
    margin-bottom: 30px;
}

.prop-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.prop-label {
    width: 80px;
    color: #666;
    font-size: 16px;
}

.prop-values {
    display: flex;
    gap: 15px;
}

.prop-value {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.prop-value:hover,
.prop-value.selected {
    border-color: #ff6700;
    color: #ff6700;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-label {
    width: 80px;
    color: #666;
    font-size: 16px;
}

.quantity-control {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #ff6700;
    color: white;
}

.btn-primary:hover {
    background-color: #f25807;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 商品特性区域 */
.product-features {
    margin-bottom: 40px;
}

.features-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff6700;
}

.feature-text {
    font-size: 16px;
    color: #333;
}

/* 商品描述详情区域 */
.product-specs {
    margin-bottom: 40px;
}

.specs-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.specs-content {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.specs-table th {
    width: 25%;
    font-weight: normal;
    color: #666;
}

.specs-table td {
    color: #333;
}

/* 页脚 */
.footer {
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 购物车通知 */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 图片显示区域 */
.big_show {
    width: 400px;
    height: 400px;
    border: 1px solid blue;
    /* 盒子外面的部分不可见 */
    overflow: hidden;
    /* 绝对定位，距离页面左边300像素 */
    position: absolute;
    top: 120px;
    left: 600px;
    /* 将其隐藏 */
    display: none;
    background-color: aliceblue;
}

/* 为大图片设置样式 */
.big_show img {
    position: absolute;
    width: 800px;
    height: 800px;
}

/* 为遮罩层设置样式 */
.mask {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 0;
    /* 先将其隐藏起来 */
    background-color: rgba(red, green, blue, 0.7);
    display: none;
}